<%@ page import="com.sg.pojo.Student" %>
<%@ page import="java.util.List" %>
<%@ page import="com.sg.service.StudentService" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        table td{
            text-align: center;
        }
    </style>
</head>
<body>
<table border="1px" cellpadding="0" cellspacing="0" align="center" width="80%" >
    <caption>学生信息表</caption>
    <th>学号</th>
    <th>姓名</th>
    <th>QQ</th>
    <th>微信</th>
    <th>出生日期</th>
    <th>城市</th>
    <%
        List<Student> students = StudentService.ME.getByLimit(1, 30);
        for (Student student : students) {
    %>
    <tr>
    <td><%=student.getStuno()%></td>
    <td><%=student.getSname()%></td>
    <td><%=student.getQq()%></td>
    <td><%=student.getWechat()%></td>
    <td><%=student.getBirthday()%></td>
    <td><%=student.getFromcity()%></td>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
